package com.three.service.impl;

import com.three.entity.StorageVolume;
import com.three.mapper.StorageVolumeMapper;
import com.three.service.StorageVolumeService;
import com.three.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Service
public class StorageVolumServiceImpl implements StorageVolumeService {
    @Autowired
    private StorageVolumeMapper storageVolumeMapper;


    @Override
    public R getStorageVolume(Integer id) {
        List<StorageVolume> storageVolumes = storageVolumeMapper.selectByKey(id);
        return R.ok(storageVolumes);
    }
}
